
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module gummworld2.model</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="gummworld2.html"><font color="#ffffff">gummworld2</font></a>.model</strong></big></big> (version $Id: model.py 407 2013-08-12 15:11:30Z stabbingfinger@gmail.com $)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C:/cygwin/home/bw/devel/python/svn/gummworld2_devel/gamelib/gummworld2/model.py">c:\cygwin\home\bw\devel\python\svn\gummworld2_devel\gamelib\gummworld2\model.py</a></font></td></tr></table>
    <p><tt>model.py&nbsp;-&nbsp;Physics&nbsp;model&nbsp;for&nbsp;Gummworld2.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="gummworld2.data.html">gummworld2.data</a><br>
</td><td width="25%" valign=top><a href="pygame.html">pygame</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="gummworld2.model.html#NoWorld">NoWorld</a>
</font></dt><dt><font face="helvetica, arial"><a href="gummworld2.model.html#Object">Object</a>
</font></dt><dt><font face="helvetica, arial"><a href="gummworld2.model.html#World">World</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="NoWorld">class <strong>NoWorld</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="NoWorld-__init__"><strong>__init__</strong></a>(self, rect)</dt></dl>

<dl><dt><a name="NoWorld-add"><strong>add</strong></a>(self, *args)</dt></dl>

<dl><dt><a name="NoWorld-step"><strong>step</strong></a>(self, dt)</dt></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Object">class <strong>Object</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>An&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;model&nbsp;suitable&nbsp;for&nbsp;use&nbsp;as&nbsp;a&nbsp;Camera&nbsp;target&nbsp;or&nbsp;an&nbsp;autonomous<br>
<a href="__builtin__.html#object">object</a>&nbsp;in&nbsp;<a href="#World">World</a>.<br>
&nbsp;<br>
Similar&nbsp;to&nbsp;pygame.sprite.Sprite,&nbsp;without&nbsp;the&nbsp;graphics&nbsp;and&nbsp;rect.&nbsp;Subclass<br>
this&nbsp;and&nbsp;extend.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Object-__init__"><strong>__init__</strong></a>(self, position<font color="#909090">=(0, 0)</font>)</dt></dl>

<dl><dt><a name="Object-kill"><strong>kill</strong></a>(self)</dt></dl>

<dl><dt><a name="Object-update"><strong>update</strong></a>(self, *args)</dt></dl>

<dl><dt><a name="Object-worlds"><strong>worlds</strong></a>(self)</dt></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>position</strong></dt>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="World">class <strong>World</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>A&nbsp;container&nbsp;for&nbsp;model.Objects.<br>
&nbsp;<br>
Similar&nbsp;to&nbsp;pygame.sprite.AbstractGroup.&nbsp;Not&nbsp;compatible&nbsp;with<br>
pygame.sprite.Sprite.<br>
&nbsp;<br>
If&nbsp;you&nbsp;want&nbsp;the&nbsp;world&nbsp;to&nbsp;store&nbsp;pygame&nbsp;sprites,&nbsp;substitute&nbsp;a&nbsp;group&nbsp;and&nbsp;that<br>
has&nbsp;a&nbsp;rect&nbsp;attribute&nbsp;and&nbsp;<a href="#World-step">step</a>()&nbsp;method.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="World-__contains__"><strong>__contains__</strong></a>(self, obj)</dt></dl>

<dl><dt><a name="World-__init__"><strong>__init__</strong></a>(self, rect)</dt><dd><tt>rect&nbsp;is&nbsp;bounding&nbsp;box&nbsp;edges&nbsp;in&nbsp;pygame&nbsp;space</tt></dd></dl>

<dl><dt><a name="World-__iter__"><strong>__iter__</strong></a>(self)</dt></dl>

<dl><dt><a name="World-__len__"><strong>__len__</strong></a>(self)</dt><dd><tt>len(group)<br>
number&nbsp;of&nbsp;sprites&nbsp;in&nbsp;group<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;number&nbsp;of&nbsp;sprites&nbsp;contained&nbsp;in&nbsp;the&nbsp;group.</tt></dd></dl>

<dl><dt><a name="World-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt></dl>

<dl><dt><a name="World-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>

<dl><dt><a name="World-add"><strong>add</strong></a>(self, *objs)</dt><dd><tt>Add&nbsp;objects&nbsp;to&nbsp;the&nbsp;world.</tt></dd></dl>

<dl><dt><a name="World-objects"><strong>objects</strong></a>(self)</dt></dl>

<dl><dt><a name="World-remove"><strong>remove</strong></a>(self, *objs)</dt></dl>

<dl><dt><a name="World-step"><strong>step</strong></a>(self, dt)</dt></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>__author__</strong> = 'Gummbum, (c) 2011-2013'<br>
<strong>__version__</strong> = '$Id: model.py 407 2013-08-12 15:11:30Z stabbingfinger@gmail.com $'</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
    
<tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Gummbum,&nbsp;(c)&nbsp;2011-2013</td></tr></table>
</body></html>